<template>
  <h1>这个是App组件 mixins 使用验证</h1>
  <button @click="show = 'Left'">Left组件显示</button>
  <button @click="show = 'Right'">这个是Right组件内容</button>
  <component :is="show"></component>
</template>

<script>
import Left from "./components/Left.vue";
import Right from "./components/Right.vue";
import { ref } from "vue";
export default {
  name: "App",
  components: { Left, Right },
  setup() {
    let show = ref("Left");
    return {
      show,
    };
  },
};
</script>

<style>
</style>